﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StateMachineLibrary
{
    public class StateMachine
    {
        private StringBuilder buffer;
        State currentState;
        State previousState;


        public StateMachine()
        {
            // set current state
        }

        public void ChangeState(State state)
        {
            previousState = currentState;
            currentState.Exit();
            currentState = state;
            currentState.Enter();
        }

        

    }
}
